package main

import "fmt"

func main() {
_Start:
	var fVal, cVal float64
	fmt.Printf("请输入摄氏度值：")
	_, err := fmt.Scan(&cVal)
	if (err != nil) {
		goto _Start
	}
	fVal = CToF(cVal)
	fmt.Printf("华氏度值为：%g", fVal)
}

// 摄氏度转华氏度
func CToF(cVal float64) float64 {
	return cVal*9/5 + 32.0
}
